package de.unidue.langtech.teaching.pp.example;

//import java.lang.annotation.Annotation;
//import java.text.BreakIterator;
import java.util.Collection;

import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
import org.apache.uima.fit.component.JCasAnnotator_ImplBase;
import org.apache.uima.fit.util.JCasUtil;
import org.apache.uima.jcas.JCas;

import de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token;
//import de.unidue.langtech.teaching.pp.type.Phrase;
//import de.unidue.langtech.teaching.pp.type.Alternative1;
//import de.unidue.langtech.teaching.pp.type.Alternative2;
import de.unidue.langtech.teaching.pp.type.MostPlausible;


/**
 *
 */
public class BaselineExample
    extends JCasAnnotator_ImplBase
{

    @Override
    public void process(JCas jcas)
        throws AnalysisEngineProcessException
    {
        System.out.println("Item: " + jcas.getDocumentText());
       
        //Collection<Token> tokens = JCasUtil.select(jcas, Token.class); //Annotationen aus CAS holen
        //System.out.println("	CAS contains " +tokens.size() + " tokens.");
        
        
        MostPlausible match = new MostPlausible(jcas);
        match.setMostPlausible("most plausible alternative 1");
        match.addToIndexes();
		
    }
}